﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
using STLGROUP.Layers.Common;

namespace STLGROUP.Layers.DataAccessLayers.Validators
{
    public class ACL_PhanQuyenNhomNguoiDungValidator : AbstractValidator<ACL_PhanQuyenNhomNguoiDung>
    {
        public ACL_PhanQuyenNhomNguoiDungValidator()
        {
            RuleFor(s => s.IDNhomNguoiDung).NotEmpty().WithMessage(Const.VALD_PROPERTY_KHONG_BO_TRONG).WithPropertyName("Nhóm người dùng");
            RuleFor(s => s.MaModule).NotEmpty().WithMessage(Const.VALD_PROPERTY_KHONG_BO_TRONG).WithPropertyName("Mã module");
        }
    }
}
